$(document).ready(function(){
	
	$("#jason1").submit(function(){
		var data={
				name:$("#name").val(),
				surname:$("#surname").val(),
				address:{
					city:$("#addressCity").val(),
					postcode:$("#addressPostCode").val(),
					house: $("#addressHouseNumber").val()
				},
				oldAddress:[$("#oldAddressCity").val(),$("#oldAddressPostCode").val(),$("#oldAddressHouseNumber").val()]		
		};
		
		//alert(JSON.stringify(data));
		
		
		alert(data.oldAddress[0]);
		
		
	
	});
});